package com.itcast.demo_one.kotlin

fun main(){
    letDemo()
}

fun letDemo(){
   var name: String? = null

   name = "ZhangSan"

   var res =  name?.let {
       println(it)
       println(it.length)
   }

   println(res)

}